<%@page import="com.kaishengit.dao.ProdDao"%>
<%@page import="com.kaishengit.entity.Prod"%>
<%@page import="com.kaishengit.entity.OrderItem"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="top.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'showitem.jsp' starting page</title>
  </head>
  <body>
	
	 <div class="span8 offset2" style="padding-top:100px">
	 	<table class="table table-striped table-bordered">
	 		<tr>
	    		<td>订单ID</td>
	    		<td>商品名称</td>
	    		<td>下单日期</td>
	    		<td>状态</td>
	    		<td>订单总价</td>
    		</tr>
	 		<%
    			List<Map<String,Object>> list = (List<Map<String,Object>>)request.getAttribute("list");
    			for(Map<String,Object> map : list){
    		%>
	    	<tr>
	    		<td>
	    			<%=map.get("id") %>
	    		</td>
	    		<td><%=map.get("names") %></td>
	    		<td><%=map.get("createtime") %></td>
	    		<td><%=map.get("state") %></td>
	    		<td><%=map.get("sumtotal") %></td>
	    	</tr>
    		<%} %>
	 	</table>
	 </div>
  </body>
</html>
